from flask import Blueprint, render_template
from flask import current_app
indexBp = Blueprint('indexBp', __name__, url_prefix="")


@indexBp.route('/')
def register():
    current_app.logger.info("访问用户+1")
    with open("conf/offset.txt", "r") as f:  # 打开文件
        offset = f.readline().strip(" ")  # 读取文件
    return render_template('home.html', offset=offset)
